package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.ListJobPageModel;
import com.peenongsaban.freelance.service.ListJobService;

public class ListJobAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private ListJobPageModel model = new ListJobPageModel();

	public String execute() {
		return SUCCESS;
	}

	public String listJobByJobTypeId() {
		ListJobService service = new ListJobService();
		model = service.listJobByCondition(model);
		return SUCCESS;
	}

	public String listJobByCondition() {
		ListJobService service = new ListJobService();
		model = service.listJobByCondition(model);
		return SUCCESS;
	}

	public ListJobPageModel getModel() {
		return model;
	}

	public void setModel(ListJobPageModel model) {
		this.model = model;
	}

}
